/**
 *  Copyright 2010 ShenYang voole Co. Ltd.
 *  All right reserved. 
 */
package com.dianning.service;

import java.util.List;

import com.dianning.bean.Credit;
import com.dianning.bean.Visitor;
import com.dianning.exception.DianningException;

/**
 * 功能描述:奖励记录操作接口
 *
 * 创建日期 Apr 10, 2010
 *
 * @author zhangbaochao
 *
 * @version 1.0
 *
 */
public interface CreditService {
	
	/**
	 * 创建奖励记录
	 * @param credit
	 * 			Credit对象
	 * @return Credit
	 * 			Credit对象
	 */
	public Credit createCredit(Credit credit);
	/**
	 * 根据code获取过期一天Credit对象
	 * @param code
	 * @return Credit
	 */
	public Credit findCreditByUidCodeTime(long uid,String code);
	
	/**
	 * 根据code获取过期一天Credit对象
	 * @param code
	 * @return Credit
	 */
	public Credit findCreditByUidCodeDate(long uid,String code);
	/**
	 * 根据code获取Credit对象
	 * @param code
	 * @return Credit
	 */
	public Credit findCreditByUidCode(long uid,String code);
	
}
